package com.qfedu.service.impl;

import com.qfedu.dao.SkillDao;
import com.qfedu.entity.Skill;
import com.qfedu.service.SkillService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SkillServiceImpl implements SkillService {

    @Autowired
    private SkillDao skillDao;

    @Override
    public List<Skill> findAllSkill() {
        return skillDao.queryAllSkill();
    }

    @Override
    public int addSkill(Skill skill) {
        return skillDao.addSkill(skill);
    }
}
